package br.siteep.conexao;

import java.sql.*;

public class Conexao {
    
    Connection con = null;
    
    
    String usuario = "root";
    String senha = "root";
    String url = "jdbc:mysql://localhost:3306/adesaoep";
    
    public Connection getConnection() throws SQLException{
        
     try {  
       
        Class.forName("com.mysql.jdbc.Driver");  
        con = DriverManager.getConnection(url, usuario, senha);
         
     }   
     catch (ClassNotFoundException e){ 
         System.out.println("Erro na classe nonexao ou Driver");
     }  
      
     return con;
     
    }
    
    
    
    
    
    
}